import request from '@/utils/request'
import linq from 'linq'

/*
校内专任教师基本情况
*/
export async function getXnqk(){
    //
    
    let res =  await request({
        url: '/Xnqk',
        method: 'get',
      })
    return res.data.value;
    //
    
}
export async function updateXnqk(model){
    let res =  await request({
        url: `/Xnqk/${model.ID}`,
        method: 'put',
        data: model
      })
      return res.data.value;
}
export async function deleteXnqk(model){
    let res = await  request({
        url: `/Xnqk(${model.ID})`,
        method: 'delete',
      })
      return res.data.vaule;
}
export async function addXnqk(model){
   
    let res =  await request({
      url: '/Xnqk',
      method: 'post',
      data: model,
    })
    return res.data.vaule;
}

/*
校内专任教师授权情况
*/
export async function getXnsq(){
  //
  
  let res =  await request({
      url: '/Xnsq',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function updateXnsq(model){
  let res =  await request({
      url: `/Xnsq(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data.value;
}
export async function deleteXnsq(model){
  let res = await  request({
      url: `/Xnsq/${model.ID}`,
      method: 'delete',
    })
    return res.data.vaule;
}
export async function addXnsq(model){
 
  let res =  await request({
    url: '/Xnsq',
    method: 'post',
    data: model,
  })
  return res.data.vaule;
}

/*
校内专任教师其他情况
*/
export async function getXnqt(){
  //
  
  let res =  await request({
      url: '/Xnqt',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function updateXnqt(model){
  let res =  await request({
      url: `/Xnqt(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data.value;
}
export async function deleteXnqt(model){
  let res = await  request({
      url: `/Xnqt/${model.ID}`,
      method: 'delete',
    })
    return res.data.vaule;
}
export async function addXnqt(model){
 
  let res =  await request({
    url: '/Xnqt',
    method: 'post',
    data: model,
  })
  return res.data.vaule;
}

/*
校内兼课人员基本情况
*/
export async function getJkqk(){
  //
  
  let res =  await request({
      url: '/Jkqk',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function updateJkqk(model){
  let res =  await request({
      url: `/Jkqk(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data.value;
}
export async function deleteJkqk(model){
  let res = await  request({
      url: `/Jkqk/${model.ID}`,
      method: 'delete',
    })
    return res.data.vaule;
}
export async function addJkqk(model){
 
  let res =  await request({
    url: '/Jkqk',
    method: 'post',
    data: model,
  })
  return res.data.vaule;
}

/*
校内兼课人员授权情况
*/
export async function getJksq(){
  //
  
  let res =  await request({
      url: '/Jksq',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function updateJksq(model){
  let res =  await request({
      url: `/Jksq(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data.value;
}
export async function deleteJksq(model){
  let res = await  request({
      url: `/Jksq/${model.ID}`,
      method: 'delete',
    })
    return res.data.vaule;
}
export async function addJksq(model){
 
  let res =  await request({
    url: '/Jksq',
    method: 'post',
    data: model,
  })
  return res.data.vaule;
}



/*
校内兼课人员其他情况
*/
export async function getJkqt(){
  //
  
  let res =  await request({
      url: '/Jkqt',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function updateJkqt(model){
  let res =  await request({
      url: `/Jkqt(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data.value;
}
export async function deleteJkqt(model){
  let res = await  request({
      url: `/Jkqt/${model.ID}`,
      method: 'delete',
    })
    return res.data.vaule;
}
export async function addJkqt(model){
 
  let res =  await request({
    url: '/Jkqt',
    method: 'post',
    data: model,
  })
  return res.data.vaule;
}


/*
校外兼职教师基本情况
*/
export async function getXwqk(){
  //
  
  let res =  await request({
      url: '/Xwqk',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function updateXwqk(model){
  let res =  await request({
      url: `/Xwqk(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data.value;
}
export async function deleteXwqk(model){
  let res = await  request({
      url: `/Xwqk/${model.ID}`,
      method: 'delete',
    })
    return res.data.vaule;
}
export async function addXwqk(model){
 
  let res =  await request({
    url: '/Xwqk',
    method: 'post',
    data: model,
  })
  return res.data.vaule;
}

/*
校外兼职教师授权情况
*/
export async function getXwsq(){
  //
  
  let res =  await request({
      url: '/Xwsq',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function updateXwsq(model){
  let res =  await request({
      url: `/Xwsq(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data.value;
}
export async function deleteXwsq(model){
  let res = await  request({
      url: `/Xwsq/${model.ID}`,
      method: 'delete',
    })
    return res.data.vaule;
}
export async function addXwsq(model){
 
  let res =  await request({
    url: '/Xwqk',
    method: 'post',
    data: model,
  })
  return res.data.vaule;
}

/*
校外兼课基本情况
*/
export async function getXwjkjb(){
  //
  
  let res =  await request({
      url: '/Xwjkjb',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function updateXwjkjb(model){
  let res =  await request({
      url: `/Xwjkjb(${model.ID})`,
      method: 'put',
      data: model
    })
    return res.data.value;
}
export async function deleteXwjkjb(model){
  let res = await  request({
      url: `/Xwjkjb/${model.ID}`,
      method: 'delete',
    })
    return res.data.vaule;
}
export async function addXwjkjb(model){
 
  let res =  await request({
    url: '/Xwjkjb',
    method: 'post',
    data: model,
  })
  return res.data.vaule;
}


/*
校外兼课授权情况
*/
export async function getXwjksq(){
  //
  
  let res =  await request({
      url: '/Xwjksq',
      method: 'get',
    })
  return res.data.value;
  //
  
}
export async function updateXwjksq(model){
  let res =  await request({
      url: `/Xwjksq(${model.model.ID})`,
      method: 'put',
      data: model
    })
    return res.data.value;
}
export async function deleteXwjksq(model){
  let res = await  request({
      url: `/Xwjksq/${model.ID}`,
      method: 'delete',
    })
    return res.data.vaule;
}
export async function addXwjksq(model){
 
  let res =  await request({
    url: '/Xwjksq',
    method: 'post',
    data: model,
  })
  return res.data.vaule;
}







